﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ulement.Web;

public partial class TuyenDung : System.Web.UI.Page
{
    int lang = 2;
    protected void Page_Load(object sender, EventArgs e)
    {

        if (!this.IsPostBack)
        {

            if (Request.QueryString["lang"] != "" && Request.QueryString["lang"] != null) lang = Convert.ToInt32(Request.QueryString["lang"]);
            lbPageName.Text = "Recruitment";
            lbTuyenDung1.Text = "ID Jobs";
            lbTuyenDung2.Text = "ID's Client Jobs";
            if (lang == 1)
            {
                lbPageName.Text = "Tuyển dụng";
                lbTuyenDung1.Text = "Việc làm Interdist";
                lbTuyenDung2.Text = "Việc làm khác";
            }

        }
    }

    public string LinkTuyenDungDetail(object ID)
    {

        HttpUrlQuery ur = new HttpUrlQuery(Page.Request.QueryString);
        string tukhoa = ur.Get("lang");

        return "TuyenDungID.aspx?lang=" + tukhoa;
    }

    public string LinkTuyenDungClient()
    {
        return new TrangTinhHelper().LoadTrangTinhViTri("LinkIdClient", 1).TrangTinh[0].NoiDung;
    }
}